import Vue from 'vue'
import App from './App.vue'
import MyHome from './views/02/MyHome.vue'
import MyMovie from './views/02/MyMovie.vue'
import MyAbout from './views/02/MyAbout.vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    component: MyHome
  },
  {
    path: '/movie',
    component: MyMovie
  },
  {
    path: '/about',
    component: MyAbout
  }
]

const router = new VueRouter({
  routes: routes
})

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
